#include <iostream>
#include <string.h>
using namespace std;
class Computer {
public:
    //成员函数
    void setBrand(const char * brand)
    {
        strcpy(_brand, brand);
    }

    void setPrice(float price)
    {
        _price = price;
    }

    void print(){
        cout << "brand=" << _brand << endl
            << "price=" << _price << endl;
    }
private:
    //数据成员
    char _brand[20];
    float _price;
};
int main(int argc, char * argv[]){
    return 0;
}

